package com.service.scheduling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.dao.model.OtcOrder;
import com.service.dao.model.OtcOrderDetail;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-18 10:15:22
 */
public interface OtcOrderDetailService extends IService<OtcOrderDetail> {


    OtcOrderDetail getLastDealOrder(Date someDay);

    /**
     * 获取单价最高的订单
     * @param someDay
     * @return
     */
    BigDecimal getMaxPriceOrder(Date someDay, Integer coinsId);

    /**
     * 获取单价最低的订单
     * @param someDay
     * @return
     */
    BigDecimal getMinPriceOrder(Date someDay, Integer coinsId);

}

